package com.cyan.tools.callback;

import com.cyan.tools.base.BaseView;

/**
 * Created by pc on 2017/7/28.
 */

public class SimpleCallback<T> implements RequestCallback<T> {
    private BaseView baseView;

    public SimpleCallback(BaseView baseView) {
        this.baseView = baseView;
    }

    @Override
    public void beforeRequest() {
        baseView.showProgress();
    }

    @Override
    public void requestError(String msg) {
        baseView.hideProgress();
    }

    @Override
    public void requestComplete() {
         baseView.hideProgress();
    }

    @Override
    public void requestSuccess(T data) {

    }
}
